<%@ include file="/common/taglibs.jsp"%>
<head>
	<title><fmt:message key="customerAttribute.title"/></title>
</head>
<content tag="buttons">
	<probiz:iconBtn btnType="add" onclick="addAttribute()" />
	<probiz:iconBtn btnType="delete" onclick="fnDoMultiDelete(this)" />
</content>

<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span><fmt:message key="customerAttribute.title"/></span></li>
	</ul>
</div>
<form class="mainForm" name="customerAttributeListForm"  id="customerAttributeListForm" method="post" action="${ctxPath}/customer/customerAttribute.html">
<div class="data">
	<c:set var="checkAll">
		<input type="checkbox" name="allbox" onclick="checkAll(this.form)" class="checkbox" />
	</c:set>
	<display:table name="${attributeList}" cellspacing="0" cellpadding="0" uid="attribute" class="list_table" export="false" requestURI="">
		<display:column class="checkbox_column" style="height:50px;" title="${checkAll}" media="html">
			<input type="checkbox" name="multiIds" value="${attribute.attributeId}" class="checkbox" title="${attribute.attributeName}" />
			<input type="hidden" name="multiIds2" value="${attribute.attributeId}"/>
		</display:column>
		<display:column sortable="false" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="customerAttributeList.attr" media="html">
			<a href="javascript:void(0)" onclick="editAttribute(${attribute.attributeId})">${attribute.attributeName}</a>
		</display:column>
		<display:column style="width: 10%;"   sortable="false" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="customerAttribute.status">
			<fmt:message key="customerAttribute.status.${attribute.status}"/>
		</display:column>
		<display:column style="width: 20%;"   sortable="false" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="customerAttributeList.operation" media="html">
			<span class="up"></span><a href="javascript:void(0)" onclick="moveUpAttribute(this)"><fmt:message key="common.iconBtn.moveUp"/></a>
			<span class="down"></span><a href="javascript:void(0)" onclick="moveDownAttribute(this)"><fmt:message key="common.iconBtn.moveDown"/></a>
		</display:column>
	</display:table>
</div>
</form>

<div style="display:none;">
	<fmt:message key="customerAttribute.attributeDefineDialogTitle" var="attributeDefineDialogTitle"/>	
	<probiz:ui_dialog id="attributeDefineDialog" title="${attributeDefineDialogTitle}" width="800" height="500">
		<iframe id="attributeDefineIframe"  name="attributeDefineIframe" frameborder="0" scrolling="no" width="100%" height="100%" >
		</iframe>
	</probiz:ui_dialog>		
</div>
<script type="text/javascript"	src="${ctxPath}/scripts/probiz/customer/customerAttributeList.js?rs=${appConfig.rs}"></script>
<script type="text/javascript">
$j(document).ready(function () {
	highlightTableRows("customerAttributeListForm");
});
</script>